package com.cx.mall.api.goods;

import com.cx.mall.common.entity.order.model.Stock;
import com.cx.mall.common.util.ResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "mall-goods-service")
public interface SkuInfoFeign {

    @PutMapping("/goods/skuInfo/docount")
    void docount(@RequestBody Stock stock);

    @GetMapping( "/goods/skuInfo/listAll")
    public ResponseVo listAll();
}
